package com.aspose.cells;

import java.util.ArrayList;

class zbcv extends zbz {
   zbcv(int var1) {
      this.c(4099);
      this.b(12);
      this.c = new byte[12];
      this.c[0] = 1;
      this.c[2] = 1;
      this.c[8] = 1;
   }

   void a(Trendline var1) {
      switch(var1.getType()) {
      case 1:
         this.c[4] = 2;
         this.c[6] = 2;
      default:
      }
   }

   void a(ErrorBar var1) {
      if (var1.getType() == 0) {
         boolean var2 = false;
         zik var3 = null;
         if (var1.getDisplayType() == 3) {
            var3 = var1.b();
         } else {
            var3 = var1.c();
         }

         if (var3 != null) {
            int var4 = var3.k();
            if (var3.q() == 6) {
               this.c[2] = 3;
            }

            System.arraycopy(com.aspose.cells.b.a.zc.a(var4), 0, this.c, 6, 2);
            System.arraycopy(com.aspose.cells.b.a.zc.a(var4), 0, this.c, 4, 2);
         }
      }
   }

   void a(Series var1, int var2) {
      boolean var3 = false;
      int var4 = 0;
      if (var1.l() != null) {
         var4 = var1.l().k();
         if (var1.l().q() == 6) {
            this.c[2] = 3;
         }

         System.arraycopy(com.aspose.cells.b.a.zc.a(var4), 0, this.c, 6, 2);
      }

      int var7 = 0;
      if (var1.m() != null) {
         var7 = var1.m().k();
         if ((var7 & '\uffff') > (var4 & '\uffff') && !ChartCollection.l(var2) && var1.m().q() != 6 && var1.m().q() != 1 && var1.l() != null && var1.l().a()) {
            var7 = var4;
         }

         if (var1.m().q() == 6) {
            this.c[0] = 3;
         } else if (var1.m().q() != 1 && var1.m().d() != null) {
            ArrayList var5 = var1.m().d();

            for(int var6 = 0; var6 < var5.size(); ++var6) {
               if (var5.get(var6) instanceof String) {
                  this.c[0] = 3;
                  break;
               }
            }
         }
      }

      if ((var7 & '\uffff') == 0) {
         var7 = var4;
      }

      System.arraycopy(com.aspose.cells.b.a.zc.a(var7), 0, this.c, 4, 2);
      if (ChartCollection.q(var2)) {
         var7 = 0;
         if (var1.n() != null) {
            var7 = var1.n().k();
            if (var1.n().q() == 6) {
               this.c[8] = 3;
            }
         }

         if ((var7 & '\uffff') == 0) {
            var7 = var4;
         }

         System.arraycopy(com.aspose.cells.b.a.zc.a(var7), 0, this.c, 10, 2);
      }

   }
}
